<?php

class Budget extends AppModel {
  public $name = 'budget';
  public $hasMany = array('BudgetGroups'=> array('className'=>'BudgetGroups', 'foreign_key'=>'budget_id', 'dependent'=>true, 'order'=>'BudgetGroups.group_order ASC'));
  public $validate = array(
      'Budget.description' => array(
          'name' => 'notEmpty',
          'message'=>'Description is required'
      )
  );
   
  
}

?>
